package de.uni_mannheim.informatik.ai.dame_ai.dame.domain;

public class Player {
	protected int number;
	protected int color;
	protected String name;
	protected boolean isHuman;
	public static final int BLACK = 0;
	public static final int WHITE = 1;
	
	public Player(int number, int color) {
		super();
		this.number = number;
		this.color = color;
	}
	public Player(int number, int color, String name, boolean isHuman) {
		super();
		this.number = number;
		this.color = color;
		this.name = name;
		this.isHuman = isHuman;
	}

	public Player(int number){
		this.number = number;
		this.color = number;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isHuman() {
		return isHuman;
	}
	public void setHuman(boolean isHuman) {
		this.isHuman = isHuman;
	}
	public int getNumber() {
		return number;
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Player){
			Player temp = (Player)obj;
			if(number == temp.number){
				return true;
			} else return false;
		} else return false;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getColor() {
		return color;
	}
	public void setColor(int color) {
		this.color = color;
	}
	
}
